package chapter2.No2_2_synchronized同步语句块.i静态同步方法与synchronized_class代码块.demo3;


/**
 * Created by Administrator on 2016/11/12.
 */
public class ThreadB extends Thread {
    ServiceClass sc;

    public ThreadB(ServiceClass sc) {
        this.sc = sc;
    }

    @Override
    public void run() {
        sc.methodB();
    }
    
}
